//
//  YYPresentTransitioningDelegate.h
//  YYTransitionAnimation
//
//  Created by 袁培超 on 2024/3/26.
//

#import <UIKit/UIKit.h>


NS_ASSUME_NONNULL_BEGIN

@interface YYPresentTransitioningDelegate : NSObject <UIViewControllerTransitioningDelegate>

- (void)configureTransition:(UIViewController *)viewControllerToShow interacting:(BOOL)interacting;

@property (nonatomic, copy) BOOL (^gestureShouldBegin)(void);
@property (nonatomic, copy) BOOL (^gestureDidChange)(void);
@property (nonatomic, copy) void (^gestureDidEnd)(void);

// webview goback
@property (nonatomic, copy) BOOL (^canGoBack)(void);
// 是否被拦截
@property (nonatomic, copy) BOOL (^shouldGoBack)(void);

@property(nonatomic, assign, readonly) BOOL interacting;

@end

NS_ASSUME_NONNULL_END
